package com.design.patterns.command;

/**
 * @Author: jinxuan
 * @Date: 2021/3/3 19:23
 */
public class BuyStock implements Order  {
    private Stock abcStock;

    public BuyStock(Stock abcStock){
        this.abcStock = abcStock;
    }
    @Override
    public void execute() {
        abcStock.buy();
    }
}
